waypoint *wpt_tmp;
int linecount = 0;
mkshort_rd_handle = mkshort_new_handle();
+ /*
+ * Make sure that all waypoints in single read have same
+ * timestamp.
+ */
+ time_t now = time(NULL);
do {
linecount++;
s = csv_lineparse(NULL, " ", "", linecount);
}
- wpt_tmp->creation_time = time(NULL);
+ wpt_tmp->creation_time = now;
/* We'll make up our own shortname. */
if (wpt_tmp->description) {
char alttype;
char icon[3] = {0};
waypoint *wpt_tmp;
+ /*
+ * Make sure that all waypoints in single read have same
+ * timestamp.
+ */
+ time_t now = time(NULL);
+
for(;fgets(ibuf, sizeof(ibuf), file_in);) {
/* A sharp in column zero or an blank line is a comment */
wpt_tmp->altitude = alt;
wpt_tmp->shortname = xstrdup(name);
wpt_tmp->description = xstrdup(desc);
- wpt_tmp->creation_time = time(NULL);
+ wpt_tmp->creation_time = now;
if (latdir == 'S') lat = -lat;
if (londir == 'W') lon = -lon;